{{useCss "/app-pages/css/goods_list.scss"}}
<div class="mainbox">
    <div class="goods_list" style="margin:0">
        {{#if $Cache.searche.isresult}}
        <p>正在查找</p>
        {{#else}} {{#if $Cache.search.goods.length}}
        <p class="search_key">查找相关“<b> {{$Cache.search_key}}</b>”的商品结果</p>
        {{#each $Cache.search.goods}}
        <div class="listitem">
            <div class="goodsimg">
                <href to="/goods_details.html?id={{_id}}">
                    <img src="{{preview_img_url}}?imageView/1/w/100/h/100" />
                </href>
            </div>
            <div class="goodsinfo">
                <href to="/goods_details.html?id={{_id}}">
                    <div class="name">{{goods_name+" "}}
                        <span class="detail">{{intro}}</span>
                    </div>
                </href>
                <div class="sale">
                    <div class="sitem">价格：
                        <span class="price">{{price}}</span>
                    </div>
                    <div class="sitem">库存：{{num}}</div>
                </div>
            </div>
        </div>
        {{/each}} {{#else}}
        <p>找不到相关“<b> {{$Cache.search_key}}</b>”的商品</p>
        {{/if}} {{/if}}
    </div>
</div>
